import Vue from 'vue'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
// import relativeTime from 'dayjs/plugin/relativeTime'
// dayjs.extend(relativeTime)
dayjs.locale('zh-cn')

Vue.filter('forMateDate', time => dayjs(time).format('YYYY-MM-DD'))

export const dayForm = time => dayjs(time).format('YYYY-MM-DD')
